/**********************************  variables  ***************************************/
:root {
    --main-color: #333;
    --primary-color: #00adcc;
    --primary-color-hover: #118ca1;
    --warn-color: #a66845;
    --warn-color-hover: #8b593b;
    --info-color: #909399;
    --info-color-hover: #65686e;
    --dark-color: #888;
    --blur-color: #e0e0e0;
    --light-color: #eee;
    --slidebar-width: 250px;
}

/**********************************  common  ***************************************/
textarea {
    font-family: inherit;
    font-size: inherit;
    max-height: 400px;
    color: inherit;
}
select,
input,
a {
    color: inherit;
    font-size: inherit;
}
.link {
    text-decoration: none;
}
.link:hover {
    text-decoration: underline;
}
.outer-link {
    cursor: pointer;
}
.outer-link:hover {
    text-decoration: underline;
}

[v-clock] {
    display: none;
}
.txt-focus {
    color: #ef946a;
}
.txt-danger {
    color: #c93b0f;
}
pre {
    white-space: pre-wrap;
}
.flex-main {
    flex-grow: 1;
}
img {
	max-width: 90%;
}

.outer-link {
    cursor: pointer;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.428;
    color: #333;
    background: var(--light-color);
    font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

/**********************************  app-header  ***************************************/
.app-header {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 50px;
    padding: 0 20px;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.app-header .header-left {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 100%;
}
.app-header .navbar-item {
    box-sizing: border-box;
    padding: 15px 20px;
}
.app-header a {
    text-decoration: none;
    opacity: 0.5;
}
.app-header a:hover {
    opacity: 1;
    text-decoration: underline;
}
.app-header a.active {
    opacity: 1;
}
.app-header .header-right {
    display: flex;
    align-items: center;
}

/**********************************  slidebar  ***************************************/
.slidebar {
    position: fixed;
    left: 0;
    top: 50px;
    bottom: 0;
    width: var(--slidebar-width);
    display: flex;
    flex-direction: column;
    background: #fefefe;
}

.slidebar-menu-title {
    display: flex;
    align-items: center;
    height: 46px;
    box-sizing: border-box;
    padding: 5px 20px 5px 10px;
    background-color: var(--blur-color);
}
.slidebar-menu-title + .slidebar-menu-title {
    border-top: 1px solid #aaa;
}

.slidebar-menu {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--dark-color);
    overflow: auto;
}
.slidebar-menu > li:hover,
.slidebar-menu > li.active {
    color: var(--main-color);
    background-color: var(--light-color);
}

.slidebar-item {
    display: flex;
    align-items: center;
    height: 46px;
    box-sizing: border-box;
    padding: 5px 20px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.slidebar-menu .sub-title {
    font-size: 12px;
}

.slidebar .hover-show {
    display: none;
}
.slidebar-item:hover .hover-show  {
    display: block;
}

.input-search {
    width: 50%;
    box-sizing: border-box;
    padding: 4px 6px 4px 20px;
    border-width: 1px;
    border-radius: 4px;
    background: url(../svg/search.svg) left top 2px no-repeat #fff;
}

/**********************************  layout  ***************************************/
.page-main {
    position: relative;
    top: 50px;
    height: calc(100vh - 50px);
    box-sizing: border-box;
    margin-left: var(--slidebar-width);
    padding: 50px;
    overflow: auto;
}
.page-main pre {
    margin: 0;
    font-family: inherit;
}
.page-main pre p {
    margin: 0;
}
.navbar-placeholder {
    height: calc(50px);
}

/**********************************  table  ***************************************/
.table {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-collapse: collapse;
}
.table td {
    padding: 8px 10px;
}
.table thead tr {
    background-color: #ddd;
    text-align: left;
}
.table thead th {
    padding: 10px;
}
.table tbody tr:nth-child(2n) {
    background: #e0e0e0;
}
.table tbody tr.active {
    background-color: #efa36a;
}

/**********************************  toast  ***************************************/
.toast {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 10000;
    width: 500px;
    margin: auto;
    padding: 10px 20px;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    background: #519daa;
    transition: all 0.3s ease-in-out 0s;
}
.toast.error {
    background: #e74c3c;
}
.toast.active {
    top: 10px;
}

/**********************************  btn  ***************************************/
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease 0s;
}

.btn-info {
    color: #fff;
    background-color: var(--info-color);
}
.btn-info:hover {
    background-color: var(--info-color-hover);
}

.btn-primary {
    color: #fff;
    background: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-hover);
}

.btn-warn {
    color: #fff;
    background: var(--warn-color);
}
.btn-warn:hover {
    background-color: var(--warn-color-hover);
}

/**********************************  popup  ***************************************/
.popup-wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}
.popup-wrap .popup {
    top: 50vh;
    transform: translateY(-50%);
}
.popup-wrap.popup-showed {
    display: block;
}
.popup-bg {
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
}
.popup {
    position: absolute;
    left: 0;
    right: 0;
    max-width: 70%;
    width: 600px;
    margin: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.popup-hd {
    height: 50px;
    box-sizing: border-box;
    padding: 10px 20px;
    line-height: 30px;
    border-bottom: 1px solid #eee;
}
.popup-hd .iconfont {
    font-size: 18px;
}
.popup-title {
    margin: 0;
    font-size: 14px;
}
.popup-bd {
    padding: 10px 20px;
}
.popup-ft {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    border-top: 1px solid #eee;
}
.popup-ft .btn {
    margin-left: 10px;
}

/**********************************  form  ***************************************/
.control-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.control-group .bm-icon {
    width: 16px;
    height: 16px;
    margin: 0 10px;
}
.form-control {
    display: block;
    box-sizing: border-box;
    margin-right: 40px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    flex-grow: 1;
    background: #fff;
}
.form-control[disabled] {
    background: #ddd;
}
.form-group {
    display: flex;
    align-items: center;
}
.form-group + .form-group {
    margin-top: 10px;
}
.form-label {
    width: 100px;
    box-sizing: border-box;
    padding-right: 10px;
    padding-left: 20px;
    /* text-align: right; */
    color: #aaa;
}

/********************************** bm-operator ***************************************/
.bm-operator {
    flex-shrink: 0;
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url(../svg/operator.svg#operator);
    cursor: pointer;
    border-radius: 50%;
}
.bm-operator:hover {
    background-color: #fff;
}
.bm-add {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url(../svg/add.svg#add);
    cursor: pointer;
    border-radius: 50%;
}
.bm-add:hover {
    background-color: #fff;
}

/********************************** icons ***************************************/
.icon-chart {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../svg/chart.svg) left top no-repeat transparent;
}
.icon-copy {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../svg/copy.svg) left top no-repeat transparent;
}
.icon-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    background: url(../svg/loading.svg) center center/100% auto no-repeat;
}

/********************************** add dropdown ***************************************/
.app-header-dropdown {
    position: fixed;
    z-index: 1000;
    top: 50px;
    right: 20px;
    display: none;
    list-style: none;
    border-radius: 0 0 4px 4px;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.app-username:hover .app-header-dropdown {
    display: block;
}

.app-header-dropdown li {
    padding: 12px 20px;
    cursor: pointer;
}
.app-header-dropdown li:hover {
    color: #fff;
    background-color: var(--primary-color);
}

/**********************************  svg  ***************************************/
.svg-text-color {
    stroke: currentColor;
}

